//模板
let template = `
<div id="app">
    <div>div1</div>
    <div>div2</div>
</div>
`;
//把模板编译成 render函数
//render函数需要执行后返回虚拟DOM
//虚拟DOM
let vnode = {
    type:'div',
    attrs:{id:'app'},
    children:[
        {type:'div',attrs:{},children:['div1']},
        {type:'div',attrs:{},children:['div2']}
    ]
}
//根据虚拟DOM生成真实DOM
let domElement = createDOMElementFromVnode(vnode);

